package com.example.testapplication;

import android.app.Application;

import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.embedding.engine.FlutterEngineCache;
import io.flutter.embedding.engine.dart.DartExecutor;

/**
 * @Date: 2022/4/7 14:36
 */
public class MyApp extends Application {
    private final MyLifecycle myLifecycle = new MyLifecycle() ;

    @Override
    public void onCreate() {
        super.onCreate();
        registerActivityLifecycleCallbacks(myLifecycle);
    }

    public MyLifecycle getMyLifecycle() {
        return myLifecycle;
    }
}
